package BOOK_describe;

public class BOOK {
    private String book_name;
    private String author;
    private String price;
    private boolean is_borrow;

    public BOOK(String book_name,String author,String price) {
        this.book_name = book_name;
        this.author = author;
        this.price = price;
    }

    public String getBook_name() {
        return book_name;
    }

    public void setBook_name(String book_name) {
        this.book_name = book_name;
    }

    public String getAuthor() {
        return author;
    }

    public void setAuthor(String author) {
        this.author = author;
    }

    public String getPrice() {
        return price;
    }

    public void setPrice(String price) {
        this.price = price;
    }

    public boolean isIs_borrow() {
        return is_borrow;
    }

    public void setIs_borrow(boolean is_borrow) {
        this.is_borrow = is_borrow;
    }

    @Override
    public String toString() {
        return "Book{ " +
                "book_name= '" + book_name + '\'' +
                ", author= '" + author + '\'' +
                ", price= '" + price + '\'' +
                ", is_borrow= " +
                (is_borrow == false ? "未借出" :"已借出")+
                " }";
    }
}
